package cn.hdustea.shopNavigation.ui.contract

import cn.hdustea.shopNavigation.entity.Child
import com.hdustea.base.base.IBaseModel
import com.hdustea.base.base.IBasePresenter
import com.hdustea.base.base.IBaseView
import com.hdustea.base.net.BaseCallback

/**
 * <pre>
 *     author : HuQiang
 *     time   : 2020/09/21
 *     desc   :
 *     version: 1.0
 * </pre>
 */
interface ChildContract {
    interface Presenter : IBasePresenter {

        fun getChildList(page: Int, isRefresh: Boolean)

        fun getSearchList(keyword:String)
    }

    interface View : IBaseView {

        fun setChildList(childList: MutableList<Child>, isRefresh: Boolean)
        fun setSearchList(childList: MutableList<Child>)

    }

    interface Model : IBaseModel {

        fun getChildList(page: Int, callback: BaseCallback<MutableList<Child>>)
        fun getSearchList(keyword: String, callback: BaseCallback<MutableList<Child>>)

    }
}
